package components.utils;

import entity.Entity;
import java.util.Comparator;

public class DefaultToStringComparator implements Comparator<Entity> {

    @Override
    public int compare(Entity e1, Entity e2) {
        return e1.toString().compareToIgnoreCase(e2.toString());
    }

}
